//
//  AlertConfiguration.swift
//  demo
//
//  Created by Jason on 2021/10/15.
//  Copyright © 2021 youzy. All rights reserved.
//

import UIKit

/// 弹框部分颜色配置
public struct AlertConfiguration {

    /// 按钮 defalut 起始颜色
    public var startColor: UIColor = UIColor(hex: 0xFF5053)
    /// 按钮 defalut 结束颜色
    public var endColor: UIColor = UIColor(hex: 0xE9302D)
    /// 按钮cancel 字体和边框颜色
    public var buttonColor: UIColor = UIColor(hex: 0xE9302D)

    /// 标题 title 颜色
    public var titleColor: UIColor = UIColor(hex: 0x000000, alpha: 0.85)
    /// 标题 title font
    public var titleFont: UIFont = UIFont.systemFont(ofSize: 16, weight: .medium)
    /// 标题 字体对齐方式
    public var titleAlignment: NSTextAlignment = .center

    /// 描述 message 颜色
    public var messageColor: UIColor = UIColor(hex: 0x8C8C8C)
    /// 描述 message font
    public var messageFont: UIFont = UIFont.systemFont(ofSize: 14)
    /// 描述 字体对齐方式
    public var messageAlignment: NSTextAlignment = .center

    public init() {}
}

extension AlertConfiguration {
    public static var `default` = AlertConfiguration()
}
